// 控制台打印自定义内容
if (window.console) {
  const getTimeStateConsole = () => {
    const time = new Date().getHours()
    return time <= 4 || time > 22
      ? 'Good Night 🛌<br>'
      : time > 4 && time <= 10
        ? 'Good Morning 🌮'
        : time > 10 && time <= 12
          ? 'Good Noon 🍱'
          : time > 12 && time <= 17
            ? 'Good Afternoon ☕'
            : time > 17 && time <= 22 ? 'Good Evening 🍇' : ''
  }

  // eslint-disable-next-line no-extend-native
  Function.prototype.makeMulti = function () {
    // eslint-disable-next-line no-new-wrappers
    let l = new String(this)
    l = l.substring(l.indexOf('/*') + 3, l.lastIndexOf('*/'))
    return l
  }

  console.log(`
  ║░█░║░█░█░║░█░█░█░║░█░█░║░█░█░█░║░█░█░║░█░█░█░║░█░█░║░█░█░█░║░█░█░║░█░█░█░║░█░█░║░█░█░█░║░█░█░║░█░█░█░║░║   ───▄▀▌─────────▄▄▄▄
  ║░█░║░█░█░║░█░█░█░║░█░█░║░█░█░█░║░█░█░║░█░█░█░║░█░█░║░█░█░█░║░█░█░║░█░█░█░║░█░█░║░█░█░█░║░█░█░║░█░█░█░║░║   ──▄█▀───▄▄▄▄───▌─▌─▌
  ║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║░║   ▄▀─█▄───▌─▌─▌──▌─▌─▌
  ╚═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╩═╝   █─▀█─▌──▌─▌─▌─█▌█▌█▌
  _________________________________________________________________________________________________________   ▀█▄█▀──█▌█▌█▌───────

      く__,.ヘヽ.        /  ,ー､ 〉
           ＼ ', !-─‐-i  /  /´
           ／｀ｰ'       L/／｀ヽ､
         /   ／,   /|   ,   ,       ',
       ｲ   / /-‐/  ｉ  L_ ﾊ ヽ!   i
        ﾚ ﾍ 7ｲ｀ﾄ   ﾚ'ｧ-ﾄ､!ハ|   |
          !,/7 '0'     ´0iソ|    |
          |.从"    _     ,,,, / |./    |
          ﾚ'| i＞.､,,__  _,.イ /   .i   |
            ﾚ'| | / k_７_/ﾚ'ヽ,  ﾊ.  |
              | |/i 〈|/   i  ,.ﾍ |  i  |
             .|/ /  ｉ：    ﾍ!    ＼  |
              kヽ>､ﾊ    _,.ﾍ､    /､!
              !'〈//｀Ｔ´', ＼ ｀'7'ｰr'
              ﾚ'ヽL__|___i,___,ンﾚ|ノ
                  ﾄ-,/  |___./
                  'ｰ'    !_,.:

      `)
  console.log(getTimeStateConsole())
  console.log("欢迎访问%cCeart's Blog", 'color:#1fc7b6;font-weight:bold')
  console.log('遇到你很幸运 💛💙')
}
